<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--     <div class="form-group">
        <label for="c-acount" class="control-label col-xs-12 col-sm-2">{:__('Acount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-acount" data-rule="required" class="form-control" name="row[acount]" type="text" value="{$row.acount}">
        </div>
    </div> -->
<!--     <div class="form-group">
        <label for="c-instumentname" class="control-label col-xs-12 col-sm-2">{:__('Instumentname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentname" data-rule="required" class="form-control" name="row[instumentname]" type="text" value="{$row.instumentname}">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-instumentname" class="control-label col-xs-12 col-sm-2">{:__('Instumentname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentname" data-rule="required" class="form-control selectpage" data-source="/admin/filedata/insnames" name="row[instumentname]" type="text" value="{$row.instumentname}" data-select-only="true"> 
        </div>
    </div>
<!--     <div class="form-group">
        <label for="c-instumenttype" class="control-label col-xs-12 col-sm-2">{:__('Instumenttype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumenttype" data-rule="required" class="form-control" name="row[instumenttype]" type="text" value="{$row.instumenttype}">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-instumenttype" class="control-label col-xs-12 col-sm-2">{:__('Instumenttype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-instumenttype" data-rule="required;xxx" data-rule-xxx="[/^[A-Za-z0-9]+$/, '{:__('Please Choice Instument Style')}']" class="form-control" name="row[instumenttype]">
                <option value="{$row.instumenttype}" selected>{$row.instumenttype}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-instumentsno" class="control-label col-xs-12 col-sm-2">{:__('Instumentsno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentsno" data-rule="required" class="form-control" name="row[instumentsno]" type="text" value="{$row.instumentsno}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-saleman" class="control-label col-xs-12 col-sm-2">{:__('Saleman')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-saleman" data-rule="required" class="form-control" name="row[saleman]" type="text" value="{$row.saleman}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-saletime" class="control-label col-xs-12 col-sm-2">{:__('Saletime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-saletime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[saletime]" type="text" value="{$row.saletime|datetime}">
        </div>
    </div>
    {if condition="!$hiddenextendfield" }
    <div class="form-group">
        <label for="c-field1" class="control-label col-xs-12 col-sm-2">{:__('Field1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field1" data-rule="required" class="form-control" name="row[field1]" type="text" value="{$row.field1}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field2" class="control-label col-xs-12 col-sm-2">{:__('Field2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field2" data-rule="required" class="form-control" name="row[field2]" type="text" value="{$row.field2}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field3" class="control-label col-xs-12 col-sm-2">{:__('Field3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field3" data-rule="required" class="form-control" name="row[field3]" type="text" value="{$row.field3}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field4" class="control-label col-xs-12 col-sm-2">{:__('Field4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field4" data-rule="required" class="form-control" name="row[field4]" type="text" value="{$row.field4}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field5" class="control-label col-xs-12 col-sm-2">{:__('Field5')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field5" data-rule="required" class="form-control" name="row[field5]" type="text" value="{$row.field5}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-salestatus" class="control-label col-xs-12 col-sm-2">{:__('Salestatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="salestatusList" item="vo"}
            <label for="row[salestatus]-{$key}"><input id="row[salestatus]-{$key}" name="row[salestatus]" type="radio" value="{$key}" {in name="key" value="$row.salestatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-servicestate" class="control-label col-xs-12 col-sm-2">{:__('Servicestate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="servicestateList" item="vo"}
            <label for="row[servicestate]-{$key}"><input id="row[servicestate]-{$key}" name="row[servicestate]" type="radio" value="{$key}" {in name="key" value="$row.servicestate"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
